package com.twu.biblioteca;

public class User {
    private String password, name, email, phone;

    public User(String password, String name, String email, String phone) {
        this.password = password;
        this.name = name;
        this.email = email;
        this.phone = phone;
    }

    public String toString() {
        return "Membership\nName: " + name + "\nEmail: " + email + "\nPhone: " + phone;
    }

    public boolean validatePassword(String attemptedPassword) {
        return attemptedPassword.equals(password);
    }
}